refactor js get json
get_tags_from_data