changed focusText helper to be available globally from /lib