now uses jquery to retrieve data attributes