normalize lines in JavaScript code