Changed to correct jquery document ready function