created polar.js and updated readme