So I have unique project I need to complete... and I have to use JavaScript. Below is the script. There are some vars declared outside of function, and I didn't include that part of the code.

I'm...