Update helpers.js

Added model creation via prototypal inheritance