js: replace lua-opts for script-opts