map js from http to https