updated to meet requirements from phonegap build