more clever loader, exports a factory to every node-like environment and adds css