moved scripts to top of index.html for faster loading