Added DELETE to javascript