Allowed for scripts to be loaded via http, https, or //
Made as many http => https changes as possible.