Output jQuery function as javascript