Copy CSS class to inner trees

Copy class of main tree element to the inner tree elements
Set correct injections

This is need for correct minimization and obfuscation