Lil bit of cleaning. Made a function to check the URL for http, and
https.