add support localstorage and almost support ajax