Added data- attribute and fixed javascript closing tag error