Use jQuery's .ready() function