Removed code duplication
reduce duplication of code
Included jquery
Merge pull request #4 from ningosi/master

Reduced code duplication