This seems to work: http://jsbin.com/wususoxa/1/edit

Dumping all the prototype properties on the constructor might be a bad idea. What do you think?