Updated and fixed head.js