new bearerJs with callbacks