Refactored scripts.js with new README.md