Fix script error in IE

IE 8 throws an error when doing
``$( '<button>' ).prop( 'type', 'button' )``

Regression by I44e92fdda6cebf5188ccfade3863219558423d8f

Bug: 58100
Change-Id: I30bb876a5afee629e60f11cdee58adb6ed5be214
(cherry picked from commit 7b5ecaf69af3c909bfcfd7dc5dbcd8def3452933)