Measures to make the page validate as html5

url-encode parameters, remove unused/unimportant href=# and IE-specific stuff