Vanilla component-loader

- Making sure all variables are on top
- Using querySelectorAll instead of $
- Using forEach instead of $.each
- New function isVisible to be re-used
- Lots of "typeof" calls instead of $.type