bind into delegate

changed the method to attach event handlers from bind to delegate for performance improvements

However, the performance improvement is very little.
I expect `applyMagicEffect` function of `myutil.js` is very heavy.