My experiment with CoffeeScript and some magic