fixed #30, IE8下js错误