Remove functions.coffee, improve deleting