removed unnecessary variables from debugging in js