adjust api controller and javascript to work correctly with

```custom_info[KEYNAME]```

```KEYNAME``` is the direct string of what the keyname is, so if they keyname
has a space in it, then KEYNAME will contain a space (i.e. ```spaced
keyname```).