added tests
created file modularity using Browserify
added additional comments