Update main.js

html 5 data attribute used