Effect.js – remove anonymous function