Added variables and prompt to javascript document.