JS bloat cleanup