added document ready and window load functions (Jquery) in core.js