Add delete tab function in JS