Save current program to local storage or in a cookie so that the program persists between browser sessions