fix keys in js