DexEdit bugfixes

Tested and works in IE10, FF, Opera, Chrome, Safari
Might need more thorough testing