js: fix focus