correct JS formatting
replace defaultPort with Maybe