Add javascript for  switching UA.