Update script.js

Created $name variable for holding name of clicked character.