Converted into Requirejs Module

Edited the model.js file to Converted into Requirejs Module