Fixed localstorage ios7 issues and weird formats