For rendering alerts in Javascript with Bootstrap