Update main.js for more efficient url handling

This fix abolishes the "www." from beginnings of webpage urls as that is default in most 21st century browsers. 

May want to check this to see whether it works. It should but was a scrappy hacktogether