Make plugin support callbacks
Make callback call into javascript