Effect.js – remove anonymous function

remove anonymous function in effect.js