added some js to judge language user use