Fixed $().delegate to make the argument data optional

According to the [docs](http://app-framework-software.intel.com/api2/#_delegate), instance method `.delegate`'s argument `data` is optional, but the truth is `data` is required. this PR just fixed it.

And some slight modification for `for` loop execution efficiency.