Updated external libraries
JS code rewritten to Coffescript

With some cleanup...
Some changes...