MDL-40470 JavaScript: Correct issue when checking select change in Firefox