Modified updateLastNode functionality in App.js to support for type "Constant index lookup"

Modified updateLastNode functionality in App.js to support for type "Constant index lookup" and made changes according to JS Lint