json order stuff
Many javascript changes, should work much better now. Some small bugfixes.