Update script.js

now we can be assured that the modal will be up for 2 seconds and added custom message ability for the modal message