Update pathgen.js

replace 
   engine.setDataModel('console', console); 
with 
  _engine._scion.model.datamodel['console'] = console;