modify node.toString() to return JSON string
refactor findItem to findNode -- more descriptive
add 'getNodeBefore' method and tests