Add Travis CI config for PR testing
Add unit tests for jQuery.grep. Close gh-1345.