Remove schemes from external scripts so they are accessible with https