Removed direct DOM access and used $elem in place
Added .gitmodules files to fix running the examples from a git clone
Added .gitignore file to ignore .DS_Store files
Variable $attr is no longer used
Merge pull request #4 from rogeriopvl/patch-1

Roger, great! Did you test $elem with the lib. I was having a bit of trouble getting it to work.