Update script.js

added rel attrib to home node, and to extract rel attrib from each node.