Source Formatting

- Arranging JavaScript for better flow
- Changing title of index.html