Update index.js

changed array detection character: ',' -> '|'