Changing window load event listener to document ready due to buggy behavior with jQuery 2.0.3