added firefox support - as best as i can!