re-wrote focusimout.js shim