script to add class to chosen words