Convert style map to js.