Fixed a bug where widgets became only resizable

And could not be dragged. Reloading, for example, caused this with
boxes.
Removed commented out code
Fixed element widget display backside bug
Fixed JSON bug in element widgets