Update classes.js

Object.create should take the prototype of the base-class. No need to switch back the constructor.