Changed document ready to window load as js conflicts with some plugins.