added double-click flag functionality; TODO: FINISH AJAX CALLS; and added a one line space between legend title in mergedindex.html