JavaScript implementation of 144 Easy: Nuts and Bolts