Separated js to script.js; added code to select entire name when clicked