Bug fixes after splitting out code to separate JS file.  Fixed state buttons on systems overview opening port details.  Fixed port filtering on ports not on image.