major changes

I rewrote some of the code for better performance, cleaned it up, and
removed matchesselector.js module. index file also updated