DOCS-823 change target of search links to same window

Signed-off-by: Sam Kleinman <samk@10gen.com>
cleanup of JavaScript lock in reference pages

Signed-off-by: Sam Kleinman <samk@10gen.com>
minor: editing