take out unnecessary var declarations in node class