Added permutation for both local and gae settings for phonegap