Bootstrap 3.0.0 compatibility fix

Bootstrap 3.0.0 requires alert to a type specified.