Change to use HTML5 local storage over cookies