CB-7816 Cordova JS doesn't build with Grunt

This fixes https://issues.apache.org/jira/browse/CB-7816