added brower validation, firefox support