Update model.js

some additional debug for grammar file eval error.