There isn't an explode function in javascript. It's the split function basically. 

See if you can find something in lodash that might help: http://lodash.com/docs