Fixed window resize and cleaned up main.js. Fixed footer.