add legacy browser support