main javascript file added. Started with the parseTree function