little refactor to handle the basics naively

 On branch master

	modified:   index.js
	modified:   test.js