anchor.diff:                                      <div class="box-right-nav dropdown">
                                           <a href="#" data-target="#" data-toggle="dropdown"><i class="fa fa-cog"></i></a>
                                           <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
  -                                            <li><a href="">Save</a></li>
  +                                            <li><a href="" onclick="saveSvgAsPng(event, ${index})">Save</a></li>
                                               <ano:iF test="${requestScope.selectedDashboard == null && gauge.dashboardsToAdd != ''}">
                                                   <li><a onclick="addGauge('${gauge.caption}', '${gauge.name}', '${gauge.dashboardsToAdd}')" >Add to Dashboard</a></li>
                                               </ano:iF>
  
positive.code:                             <div class="box-right-nav dropdown">
                                  <a href="#" data-target="#" data-toggle="dropdown"><i class="fa fa-cog"></i></a>
                                  <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
                                      <li><a href="" onclick="saveSvgAsPng(${index}+countGauges())">Save</a></li>
                                      <ano:iF test="${requestScope.selectedDashboard == null && chart.dashboardsToAdd != ''}">
                                          <li><a onclick="addChart('${chart.caption}','${chart.dashboardsToAdd}')">Add to Dashboard</a></li>
                                      </ano:iF>
  
negative.code:             function countGauges() {
                  return $('.gauge').length;
              }
              function saveSvgAsPng(event, index) {
                  event.preventDefault();
                  event.stopPropagation();
  
                  var chartWidth = 525,
                          chartHeight = 321,
                          margin = 30;
  