improved the getnodes function in main.js by doing translation in a seperate function
improved the getnodes function in main.js by doing translation in a seperate function

ProgrammingLife2016/PL5-2016,ProgrammingLife2016/PL5-2016,ProgrammingLife2016/PL5-2016