Remove old js selectbox code that was disabled everywhere

This code currently serves no purpose, and could be much simpler written
using modern JS tools if we needed the functionality.
Merge branch '4.2/remove-js-selectbox'