refactoring requireJS config to all sharing between app and test