Move [data-popselect] handler to the library file itself