Also implement autofocus in js.
Also implement autofocus in js.

Looks like this is needed for Chrome.


Former-commit-id: 7d444f3b7ed464cc83bc9d805622efa697bcc1a0
eggpi/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt