Find the global javascript variables and duplicated ids in the current page.