Fix script error in IE

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

Regression by I44e92fdda6cebf5188ccfade3863219558423d8f

Bug: 58100
Change-Id: I30bb876a5afee629e60f11cdee58adb6ed5be214