Add javascript to scroll delete button into view

Thanks to @bebef1987's comment in pull request #679, we can actually fix this test and resume coverage rather than xfail it. I have implemented the suggestion and the test seems to be passing now.