Fix permission setting for html5 file system