Fixed violations of code-styling guides
Fixed violations of code-styling guides (js part)