suggest Autodetected key in the alert + cleanup

When the user press the JSIT button, no API key is set but an API key is
detected, a message will ask the user if he wants to use the key
autodetected. + removed some useless portions of code related to the
former button option.