Initial JS that was able to do Post in the polls app of tutorial. WIll use this for doing post