add ability to show alerts in JS bridge API