Fix remove tag Javascript. Issue #319.