Convert JS to CS
Convert the rest of client javascript into coffeescript