Enhanced lookup speed.

Applied a hash list for fast lookup.
Added a CoffeeScript file to generate the JS code.