Now saves written code in localStorage