add function support

Function can be javascript function, or function defined by easyCode
language (only aleatoire, for the moment)