Adds first few bits for making POST ajax calls