replaces use of indexOf with more idomatic CoffeeScript
adding js files
Merge pull request #501 from jschliffer/remove_indexOf

replaces use of indexOf with more idomatic CoffeeScript