don't bother firing hooks received by js unless a listener exists
moved port 80 and 443 warnings to its own conditional