Update formhelper.js

Added copyVals() to copy input to output.