Parsing data attributes, collecting page scripts