Hooked up javascript bridge in the worksheet controller; some debug code; other trivial changes.