update demo page to make it compatible with older browser
add better console shim for ie