fix bug in worm animation js (misspelled variable isMoving)