javascript for certain browser support