script.js documented