partially working js post form