Simplify repository structure

* Use pure JavaScript, instead of using any transpilers
* Use npm scripts instead of gulp
Update test to cover various cases

Close #2 because it includes CLI test.