creating separate directory for tests
rewriting structure of JS object so this can be used as a node.js library
example files that can be run using node.js to see how things operate.