Use new name of related dataset javascript function