application.js: Fixed JS for textWithSelect.