Set the constructor property on the prototype as required by WebIDL
Merge pull request #316 from arv/fix-constructor-property

Set the constructor property on the prototype as required by WebIDL