Refactor indentation on script.js