JavaScript / AngularJS / HTML5 canvas Centipede Game