added selective invitation and javascript interaction for timing recommendation