Add namespace for searching functions.

Wrap in a `searching` namespace for global sanity. In in node (for mocha
tests), pretend we're in an AMD module.