Update javascript/models.js

update the widget to work on dev.gignal.com