This should be fixed in the JS example app now: https://github.com/dreamfactorysoftware/javascript-sdk