Update public/js/models/models.js

Converting the model to RequireJs