for phonegap use