Quiz app using js objects