Removed alert duplicate of console.log and reworded comments to explain the purpose of script better.