Issue #41 delete javascript fix