Added JavaScript to post the user's input script to the back end.