Removed loops in favor of .forEach()

1. Aligned the filenames to all include “alerts” instead of alert.
2. Replaced the for-loops in alerts_client.js by .forEach() array
methods.
3. Shortened the autohide test to 3 secs.