Corrected focus styles and JS event handling.