I have a library of scripts for users to reference in the console.
When they copy the JavaScript to the editor and submit script works on front end of the website.
When you open that record JavaScript disappears from the editor but it still on front end of the website.
Example:
<script language="JavaScript">SCRIPT_NAME ("0","/Images/button_login.gif") </script>