JavaScript: headcore.js