Fixes to make firefox work, IE mostly play along.

Signed-off-by: cmaish <mail@christophermaish.com>