Convert VF body model update: make it a function instead of a script

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>