Added back javascript to ports management screen