initial support for phonegap