Modify .gitignore.
Refactor scripts. Add utils.js