commenting explanation to wacky script.js