Simple Quiz implemented in Javascript