Fixed v12 issues, small code changes

* Fixed issue where dropdown was not appearing in v12 site styles

* Changed method of add HTML classes from `className +=` to
`classList.add()`