add after select callback feature

I first try using on change events on the input field for a after select callback but it seems to have 2 change events triggered from the default dom input change event and in this typeahead plugin code. So I made a after select callback for it.

Just ignore commit 'fixed window scope for chrome extensions' its just for my own use.