Moved css injector
Added promises to css injection