Link functionality in advanced prototyping

I wish we could have functions, like in javascript so we can create templates.
Vote for this Prototyping functions like in javascript to manage a complex prototype