Swap libraries and organize

Moved jquery ui up above custom code. Always do libraries first then
custom code. Also swapped jquery.com library for google as it now
doesn't cause an error.