Fix a JS error when serving files compressed