Fixed small js bug with delete button