function send_to_database(val){ $.getJSON('http://example.com/data.json',{data: val},function(){}) return val }