a simple quiz in javascript