Moved scripts to bottom of page

Greatly increases loading times.