Template lint and whitespace cleanup
Fix code formatting and make the javascript unobtrusive.
Stop using synchronous loading at the top of the page.

Might as well just load jquery and jquery ui directly,
and do it at the bottom of the page for rendering speed.