@gianlucadelgobbo I have to go now. You can't merge performer.js and user.js automatically as user.js is more or less new code. Besides the JSON part everything from the former get method is already in place in user.js.
So just move what you need from performer.js to user.js and refactor it on the fly.
And the post parts also need refactoring! I guess no one really knows what happens in all that if for switch else if for each if else magic.