Use protocol-relative URL to load CDN scripts in custom forms

Fixes #1210, untested.