Use classes instead of ids, and querySelector() instead of getElementById()