Typo
Corrected minor error in sample code
Use typeof operator for undefined checking
Added missing () to self-executing function
Minor typo
Merge pull request #110 from ComFreek/1.5.2

Typo + code corrections/improvements