improve code; write coffee-script based code for visualizing ditionaries