wiring js