Create model.javascript