User interacton in Javascript exercise