User license management in javascript

Hi all,

I’m developing a script for AfterEffect. The script will be delivered in jsxbin format as usual.
I’m looking for the javascript code, to be integrated in my script, to manage the user licence data.

Just a window to ask name, surname, product code key and the related function to (at least) unlock the script.
If there is a product in the envato market that do this please let me know.
Obviously, if the code could check the licence via envato API this could be the best.

Thanks Regards
dotjsx