Update safeInnerHTML function
makeit compatible with W8
Lib update