init js add port