JS pretty printing
Bugfixes