Rewrote ot.coffee -> javascript