Optimise unary operations on numbers in node.js