Get Page/Template Name with JavaScript
// alert(window.location.pathname); // Clients/Bozzuto/bozzuto-careers/template--home
var page_name = window.location.pathname.split('/').pop(); // template--home
if(page_name == 'template--home' || page_name == 'index') {
animation_duration = 6850;
} else {
animation_duration = 7200;
}