Added suppot for Firefox by removing references to range.Type