Updated and fixed main.js

dynamicScaling in main.js now uses bezier scaling
Added .gitignore
Update .gitignore
Update .gitignore