Correcting bugs: clashing var names on the JS file and making div id name more unique