jQuery plugin replacetext returns a string which contains the updated text. So you need to first assign into a object has a key and value.