Linting and formatting of the js codes

please do so