#javascript Lazy event handler attachment