added firefox compatibility