Change from `add-to-list` to `push` to avoid a strange `(void-variable
alist)` error.

Moved `api-key` to let binding rather than directly in if statement.