create js file for json of tos_metadata