update karma process with globals (closes #8 and #9)