fixed focus/active bug with Chrome by adding JavaScript