Refactor _setTargetNode; includes tests for: empty, node, jQuery set.

The empty line whitespace was removed automatically

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>