Fix JS on HTTPS