Initial localstorage and dom functionalities added.