Update kittrell-vincent-project2.js

I took out the initial alert. Added global variables. Added a function.