fix keys for jsapi