Moving javascript around so that the mass edit functions can be hidden when the regular port edit functions are triggered. Still need to rework the bits for the patch panels. #217