Updated staging.js URL rewriting to handle both https and http schemes
in rewritten href target URI.