fix for ie8 and add example