html5 - localStorage : cache scripts