Reverting to using functions instead of faux coffeescript classes