Cleanup.

Return early if the editor is unavailable; don't bother loading config if
the language isn't JavaScript; better handling of config loading.