updated readme, fix to js to capture if data attribute is undefined, update to examples