Pure js

Converts module to pure JS without CoffeeScript.