updated script.js

minor updates for formatting and output text