divided index.js into several modular js files and added unit tests for both is.js and str.js