Remove karma as global variable