issue 819: add alert and confirm in non-enumerable global properties

fix issue #819: add alert and confirm in non-enumerable global properties