html5 filesystem common routine