integrate CTRP and scatter.js