#282 Refactoring main.js Constructor (remove Nav Object in Global Scope,
merge to panel), Refactoring convention