Rewrote firefoxes.sh to be less spaghetti-like