[JavaScript] Updated formatting of the files to match closely to existing files for the Pull Request.