Added the callback feature to the coffescript

No tested. I figure it how to do it on coffescript