show listener count and fix some bad js