Try to use prototypical inheritance rather than class-based, update to pass jslint