Pending detection fix + Data attribute cleanup

* The approvable metatag isn't usable for anonymous users so the pending status is now detected by the presence of the notice.
* Removed some data attributes in order to better match Danbooru.
* Reorganized the global object.