remove head.js, convert scripts from head.ready to document.ready