Update js/imgcache.js

Correct cordova/phonegap application checking