Bug 977547 - JSHint fixes for Search

https://bugzilla.mozilla.org/show_bug.cgi?id=977547