Add constructor property to prototype for coffeescript

This is to fix #189, by adding the `constructor` property to the prototype. Placing here for some peer review.