Support bool on lists in node.js