Adding current config storage with HTML5 localstorage