added a comment, switched to console log from alert