A* Implementation in HTML5 and CoffeeScript