Added javascripts for trails display