add some comments to alerts.js
remove unused js from alerts.js