added router and model js files