Remove use of localStorage because of https <-> http issues