changing js back to post