method for retrieving media elements on the current page