Update front-edit.js

Editor should be destroyed before removing HTML element or in other case it'll throw Exception