Fixed some issues with jquery 1.8.3
Merge pull request #2 from brainbits/master

Getting in Brainbits' changes