Replace deprecated jQuery function call