Merging Pradeep's code refactor onto master branch after code review.
renamed utils.js to graph-objects.js
refactoring code getNodeName, moved to one place - graph-objects.js
fixing node type bug due to refactoring