Change moduleApiProvider.whereAmI() to isBrowser and isServer. Refactoring.