Karma jquery-ui pattern fix