wrap js in document ready