wp8 and phonegap 3.x support
made phonegap 3 compatible