Cleaned up main.js and tabs.js and fixed getversioninfo