Fix bugs in script.js.
Remove logs.