Remove trailing spaces in all js files

So that everyone can use auto removal of trailing spaces without generating
unwanted diff lines. Only white space changes, nothing else.

The command used:
sed -i '' 's/[[:space:]]*$//g' **/*.js