Not-yet-complete M2MJSON client-side implementation with Twitter typeahead.js