Fixing issue on IE8 when binding 'type' attribute