Move initialisation of select2 into callback so it doesn't occur too early. Issue: #370