Added jQuery wrapper function snippet