Create machine.js