update karma and use a JS based config