moved script loading to end of app to ensure jquery loads 1st