Better adaptability

Hi @AndersMalmgren, 

You are doing a nice work with this library.

I have done some enhancements to allow it to be adapted for my project, but there are a lot of pending thinks that I still need, so by the moment I will continue working with my old Bootstrap Type-ahead custom binding handler.

Anyway, maybe it could be useful to you. I have updated demo page but sadly I did not add any test.

Regards