Sorted, indexed maps and sets for Javascript.