don't name the $nodeObject with a "$" sign, since they aren't jQuery objects. Try just "node" instead