Cleaned up quiz JavaScript