add karma conf and more npm packages