changing postData to data to follow jquery convention