Fixed bug on Firefox

Alert box didn't showed up when delete button was clicked
Merge pull request #1 from kimiamania/master

Fixed bug on Firefox