Graphical View JS Generation stage 3

Main logic completed
Minor adjustments left