Committing after click location fiasco.. of introducing "classes" within java script and an object array to store the clicked location content.