Adds JS integration tests for search

In my previous PR that fixed .jshintrc to allow new Ember e2e tests syntax (https://github.com/discourse/discourse/pull/1883) I forgot about one method (`andThen`), what was revealed when writing this test - so this PR additionally fixes .jshintrc.