angular module to handle bootstrap alerts working with angulars $emit