Smarter nick extraction in karma plugin