add check so we don't add js on pages where we don't need it