Replace http to https for js files