Use querySelector instead of getElementsByClassName

querySelector is a more concise synthax to query DOM