Update index.js

Added support for custom delimiters