avoid XMLHttpRequest to access locally downloaded files since it only works for retrieving network resources on wp; console.info -> console.log because only the latter appears in debugOutput on wp; call init after device is ready; rename base to prefix; detect prefix early and avoid repeated calls to getFileEntry