New JS Code to post results