Update perform.js

working on local functions binding