moved most of the ```<script>``` stuff out of the ```<head>``` for better performance.