Revert "Forgot to rename getStatus in plots.js"

This reverts commit b7be3813df204bb936a48a7f9b0465293e98bf59.
Revert "Rename getStatus to getStats, fits better"

This reverts commit db2c59aca34963d129ad7ea43ee0a81d51df23cb.
Put getting regions into a function