Use querySelector instead of finding elements by id.