POC:attempt to factorize a javascript code for user edit