Semantic Differetial JavaScript class