Update javascript/models.js

update the widget to work on dev.gignal.com, changing the root_url to dev.gignal.com/event/api...