CB-7269 Fixes loading cordova.js on windows phone 8.1

Fix for [CB-7269](https://issues.apache.org/jira/browse/CB-7269) + minor JSHint fixes at lines 76, 79