Binary, Hex, Oct, Dec converter in Node.js