Add tests, protect context parameter in grep. Fixes #4
Obey jshint, and add style compliance to travis tests