call scheduled contacts - refactoring JS