Fixed issue with loading models.js