Linting and formatting of the js codes

linter does not force it, but I guess fixjsstyle has done it. It is possible to use one line initializer.