Makes legend js work with line charts across all pages that have line charts