pull-request-28

- [ ] Rework this whole file into `main.js`
- [ ] As this is relatively simple code, use AUI instead for jQuery.