Converts record script into CoffeeScript class