Altered jquery POST to use new API