converted jQuery version to VanillaJS.

TODO:
event listening and dispatching for extensions
event listening for ARIA tile focusing