CHanged from jauery.ajax to jquery.post
changes "metas" to "meta"
Standardized format of data in ajax response
Use wp_send_json_success to create ajax responses
updated js to handle revised structure of responses