Firefox speedup and minor fixes