modify browser-validator to support safari