updated script.js

Added the output to script.js, final verison