Modified http to https for js lib