updated js to add keys when clicking run again