pass hitcallback as jsobject