Probably you have some kind of output filter on Assets (minifier). But without actual code it is hard to tell which service is repsonsible for this trick.
Pardon my ignorance, how JS could become broken if you removed LF's? HTML does not "break" if you remove (CR)LF's, and neither does JS. And that's what minifiers do, they eat up all line feeds and blanks etc. But the code still works just fine in a browser as it does not care about LF's or CRLF's.