A serious hack. That API was not available until 6.5 so it seems that you would need to use classic Javascript to manipulate those values, wherever they are stored.