add js callback pattern with this binding to viminder