Close the ready function
$(document).ready(function()
{
var myColors = new Array();
myColors[0] = "#2672EC";
myColors[1] = "#97009F";
myColors[2] = "#094DB5";
myColors[3] = "#00A300";
myColors[4] = "#DA532C";
myColors[5] = "#AF1A3F";
myColors[6] = "#613CBC";
myColors[7] = "#008AD2";
var rand = Math.floor(Math.random()*myColors.length);
$('#button').css("background-color", myColors[rand]);
}); //missed to close