redrawports() not found.  damnit.  I'm turning this JS into spaghetti code and not happy about it.  I need to refactor this shit ASAP. #217