Update <link rel="canonical"...> to always use 'http://$_SERVER['SERVER_NAME']'

http://example.com, https://example.com, http://www.example.com, and https://www.example.com
will all result in http://example.com
Added $().ready() event listener.

Uses DOMContentLoaded to create an event listener.