Add js delete function