bugfix wp8 code and build pass on phonegap build