added HTML5 supporting code for IE 8 or below