added multibrowser support