Added firefox compatibility