Minor simplification for JS.