Continuing work on model.js; still not runable yet