$.ajax ({ url

$.ajax url was hard coded