Autoremove trailing spaces when saving JavaScript buffers.

Can we add JavaScript files to the list of types that get automatic whitespace removal?