Fixed javascript logic for line chart rotations and team drop down menu