Build simple machines in JavaScript.