add ie8 support
additional fix for script insert