js: don't use ++.