JavaScript game inspired by Flappy Bird