Problem 42 - Coded triangle numbers .. node.js