Tricky... this will need to options.togetherjs variable too, but with a different protocol. Maybe parse the URL, replace the protocol, then output it again?