re-add document.ready function