add model and view js files