simplified the js question to a single page
cleaned up html
switched to use dataset attributes in html5