js: jquery memory leaks

_initDataAttributes method has been updated to avoid memory leaks in jquery cache