Fixed violations of code-styling guides (js part)