Port Coffeescript to Javascript

Because I wanted to hate coding for a few days.