refactor jasmien to karma