Minor edits.
JS arrays grow dynamically, so we don't need to allocate their size.
Minor edit.