Fixed and quality improvements

* fixed the tests
* upgraded dependencies
* added compilation to JS for server-side CS