added karma for frontend testing, modified the gruntfile so it also works with karma