updated script.js

Updated script.js with the output