Correcting CSS of component to be more stable through JS compilation