Convert Impromptu's source from CoffeeScript to JavaScript.

@evansolomon, can you give this a sanity check?