Add function for source preview page's javascript

Some functions are needed in source preview page, like checking if a website can be embed in an iframe which cannot be done in js, get source by url.
isn't it odd that this is called "find_duplicates" and not something like "find_by_url"?