Added a base tag; the href attribute will be set via javascript if it's required.

(Also changed <tag /> to <tag> in two places as this is HTML, not XHTML)