updating for phonegap build