Circuit Analysis Node Method In Javascript