an interactive quiz using functions & if-statements in javascript