Add nofollow to outside link

adding rel="nofollow" to links that have http or https protocol.
A minor note, but you'll see better performance in for loops in some browsers if you pre-calculate the length, rather than calculating it on every iteration.  For example:
`for (var j = 0, len = links.length; j < len; j++) {`