Modified javascript for adding classes to alerts and notices