var falcorExpress = require( 'falcor-express' );var falcor = require('falcor');var express = require( 'express' );var app = express();var $ref = falcor.Model.ref;var model = new falcor.Model({ cache: { titleById: { 5221: { name: "House of Cards", rating: {$type: "atom", value: 5}, bookmark: {$type: "error", value: "Something went wrong."} } }, genreList: [ { name: 'Recently Watched', titles: [ $ref("titleById[5221]") ] }, { name: "New Releases", titles: [ $ref("titleById[5221]") ] } ] }});app.use(express.static(__dirname + '/'));app.use( '/model.json', falcorExpress.dataSourceRoute( function ( req, res ) { return model.asDataSource();} ) );var server = app.listen(3131);