dynamically create url on a ajax post