Fixing depreciated jQuery