update to use "on" instead of "bind" and allow attaching data structures instead of only strings
This allows autocomplete functionality using ajax that actually selects an object.