Minor comments/cleanup in JS.