varies score algorithms for node.js and browser