added firefox 22 compatibility