globals definition
add `npm test`, run in travis-ci