converted polys.js to LiveScript
converted stats helpers to LiveScript