fix https javascript