created appFilesDirectory if it doesn't exist, changed from html5 to firefoxos