The make over of pos.js