update model.js to eliminate dependence of knockout.js