[backend] Js lint.

Ok, this is just cleanup and js lint of existing code, the scripts was filled with warnings, I only use 2-0-stable branch but do extra tests before merge it. It also use standard formatting for better readability.