loop = function (node, tag, contentNode) {
                var i, len, els, el,
                    objs = [];

                if (!node) {
                    return objs;
                }

                els = node.getElementsByTagName(tag);
                for (i = 0, len = els.length; i < len; i += 1) {
                    el = els[i];
                    if (!el.src) {
                        objs.push({
                            contentNode: contentNode,
                            body: el.innerHTML
                        });
                    }
                }

                return objs;
            }
Get all inline elements (style and script) from a document
@param doc (optional) the document to get all inline elements
@param head (optional) the head node to get inline elements, ignores doc
@param body (optional) the body node to get inline elements, ignores doc
@return object with scripts and styles arrays with the following info:
containerNode: either head or body
body: the innerHTML content