added has_focus.js to test suite