Fixed doctype missing, added localstorage