only replace new lines if not a js file
tests
simplifying escaping of newlines so it only happens in text escaping
Merge pull request #934 from eleith/patch-includes-javascript-newlines

javascript newlines in strings need to be preserved in include filters