basemodel.js now part of core
make method construction overridable