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.
FYI, just Self::Webpage would probably work. (though there's nothing wrong with the full name)