Create Swap-hostnames.js

This JS is to swap hostnames of the webpages.