css left align legends and remove old scripts