semi english/with technical jargon explination of script.js