fixed addScript.js