Syntax fixes in networks.js