added js to do post without change the page