js env port correction