Reindent script.js