Removed bug
Added firefox support