reorganization of refs handling [js]

Have transformated plain func arguments to objects
Have fixed clean value func
Have eliminated formId passing
Have added binding to elements in order to use jsf generated ids of
inputs