Refactored. Updated jQuery version.