Select table rows after "beforetablesort" event and add npm support.

We are using this plugin for an editable table which injects a tr element after the editable row. I need to cleanup the edit rows before the table sort occurs. The beforetablesort event seems like the correct time to do this, but the event was being fired after the tr elements are selected, causing the sort to fail. I moved the tr selection into the setTimeout call, before "trs" is used and after the beforetablesort event is triggered.

We are also using NPM, so I added a package.json. You may want to change the version number in package.json to something more appropriate.