Change loading moment to specified JQuery event, default set to document.ready