compatibility with old jquery delegate and bind