Fixed javascript

fixed document ready function for to top box