Rewrote JS for recent changes in controllers. Details to be done.
Also updated dump to changes.