covert JavaScript to CoffeeScript for web admin interface