changes for compatibility with jQuery < 1.6
fixing identation
Merge pull request #52 from jbarroso/old-jquery-support

Old jquery support