Go back to data-hide attributes

* ...but index all the elements by ID and type instead of using jQuery selectors all the time
* :visible is too slow