Added nicer dialog than built-in js alert. Ready to supply score information at end.