Implement it as jQuery Plugin.
Merge pull request #8 from yuhua-chen/michael

Implement it as jQuery Plugin.