Name moved from div tag in html file to name variable in js file