add a bit more cross browser support