Added support for Firefox 21 and above. Needs further testing.