Polynomial fitment library for node.js