Adding the javascript for listing ports