Look into your console and check the example/js/model-demo-sync.js file for more.