fix for js post data calls