Make WebApp runs smoothly on both Safari and Chrome platform.