JavaScript network utils.