JavaScript: footcore.js