Fixing line breaks in JS