jQuery - First Refactoring