Setting up for phonegapp