A simple implementation of the mechanics of Flappy Bird in JS