Syntax Fixes in models.js
Add code to serialize and deserialize scenarios