Update script.js

Added control for adding class with white placeholder color to wrong cases. Added white color to correct cases.