Javascript for Delete Friend written