Refactoring
Support jQuery 1.7+ only