Why Use Arraylist Over Array Methods Javascript Pop