added jscs (with yandex preset); made example more readable

//cc @dimik