document.ready should work, also fixed call to moment.js