Wire World in Javascript