added .when() and exporting top level functions
added .when() and exporting top level functions

TobiaszCudnik/coffeescript-to-typescript,TobiaszCudnik/coffeescript-to-typescript,MartyIX/coffeescript-to-typescript,TobiaszCudnik/coffeescript-to-typescript,lieuwex/coffeescript-to-typescript,lieuwex/coffeescript-to-typescript,MartyIX/coffeescript-to-typescript