Add automatic saving of the code into the localStorage