Modified js.
Accidential termination prevented and playback successfully saved.
Updated accidential termination functionality.