javascript document ready without jquery