I think you are now overwriting changes made to this file.
For example
```js
$('#pid_' + pid).html(values.message);
```
was changed to
```js
$(this).html(json.message);
```
(that's no the only difference)