Fixed type-o using '=' rather than '==' in if statement.
Merge pull request #24 from dsnopek/node-type-changing

Fixed type-o using '=' rather than '==' in if statement.