Rewrote options JS in CoffeeScript