add bootstrap grid to alerts. update js var definitions to cleaner syntax.