Fixes #2, various Firefox bugs (with versions < 20).