分離angularjs code to app.js