Minimal cleanup in JavaScript.