Fixing `element.val()` for Firefox