Update observable JavaScript arrays

When working with observable JavaScript arrays, update the underlying JavaScript array and then call valueHasMutated() on the array.