Text this: Detecting dynamical changes in time series by using the Jensen Shannon divergence