changing app to {Model}.app in {model}.js to remove require