added jscs (code style fixed by yandex preset); tests fixed