update JS (regular expression special character fix)