added support for karma and phantomjs (works on local machine)