Reorganized file layout to better structure the site.
Cleaning up the javascript code to remove redundant functions.