HTML5 Ant simulation