initial commit

new file:   index.js
- validator functions implemented

new file:   test/index.js
- basic validation tests implemented and passing