Added global variables/prompt/procedure to js file.