Remove suffixes from js filenames.