Fix JSHint issues, fix loss of context calling `bind` and `search` handlers