Base64 converter in nodeJS