web.js - copied commit 571e4e310d1721b38a694c941572e078acce146e since I noticed a working https redirect before following commit