Update script.js

updated wait time and fixed my typo.