Move the code that parses the dom to the parent method.

This paves the way for easily adding scripts for more sites than just
the big picture.