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.
the above views seem pretty wordy.

Why
```
result = Hash.new
counter = 0
result[:result]=isIframable url, counter
```
instead of 
```
result = {:result => isIframable( url, counter=0 ) }
```
...and why
```
url = Card::Env.params[:url]
source= Card::Set::Self::Webpage.find_duplicates url
result = Hash.new 
result[:result] = false
if source.any?
   origin_page_card = source.first.left
   result[:source] = origin_page_card.name
end
```
...instead of...
```
source = Self::Webpage.find_duplicates Env.params[:url]
result = {:result => false }
result[:source] = source.first.left.name if source.any?
```
...?