added coffeescript file

Hope you don't mind. I wanted a coffeescript version of this, so I went ahead and converted it.