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
Fixed conflict