added document ready to js