added local storage and refactored html.
refactored more html and js.