DAR-2618 added documentation to modal.js