moved creating main.js from 'all' to 'app' sub generator

If this is not moved, all the subgenerator like controller, model etc will throw error.
All those sub generators use **isUsingRequireJS** method which will try to read main.js