Use DOM APIs to apply stylesheets

Previously jQuery was used, but using the DOM APIs directly takes 1/3 of the time.

For me this dropped the time taken to loads all stylesheets from `60ms` to `20ms` which is synchronously done at startup.