Finishing code element retrieval

processCode now accepts undefined, a DOM query string or a DOM node,
which can be retrieved through the jquery selector or multiple
javascript document methods.