added better support for jQuery. It should work even if jQuery is loaded after the initialization script is declared. For example if someone is including jQuery after before_body_end block