Various html/js fixes

resolves some IE9 alerts