Simplified class label function via jquery