fixes for script.js