add regression.js to do polynomial regression