Renumbered JavaScript solutions.