implement point.js