Fix firefox JS bug on viewing revision