First, insert the source file after jQuery. When the user selects the cells, an jQuery event named selectionupdate is triggered with an argument which is a DOM objects array of the selected cells.