made controller.profile.js work everywhere