Same issues here as above.  Order matters, and you also need to fix-up the prototype constructor.