started refactoring frontend editing, using CoffeeScript