Simplified JS code and styling management