Fix javascript setup form field focus detection