Update perform.js

Now can add multiple before functions with multiple parameters.