pass object as arguments to modal open/close global functions, refactor live-demo-webinar js to use modal.open function