Create mechanics.js