connectUrl = location.origin & adjust the path
modified scripts