Remove trailing spaces for CoffeeScript and JS files