Update functions.js

A simple countdown clock was added.
The user inform how many minutes.
When clock reaches 0:00 a score is printed as an alert.