fixed for Cordova 3.5.0 and tested under Windows 8.1, VS2012 and WP8 SDK