rm unused CSS, add component count, wrap in IIFE