create bootstrap3 modals and alerts using javascript