cleaned up main.js and removed separate scroll file