JavaScript api for Port Monitor