Flappy bird with javascript