More javascript for handling friend accept/reject; actually sends requests