Changed tokenInput to accept function as its datasource rather than ajax call URL generator