removed redundant document ready function