JS - improve integration of karma and upgrade to v0.10.8