Move coffeescript into new file