make ctrip js generic