@Schoonology would be the best to comment here. The JS version is only a prototype.

That being said, there needs to be some delimiter to end a key. Without splitting on `/` or some other more clever method, you will replace incorrect keys.