use getScriptName instead of hardcoded URL