add class for script component