Removed unused states and templating of main.js