Updated line in JavaScript