correcting port in js