Fixed jQuery.ready event

Fixed jQuery.ready event