Make them into jQuery plugin.
make them into jQuery plugin.
Merge pull request #1 from sujin2f/master

I made your code to jQuery plugin.