Adds jQuery and jQueryUI download to every page and refactors base.html