Simple friend request javascript working