an attempt at https://github.com/glamp/coffee-script-for-r