review_fix: JS clarity/correctness fixes