Update flag.js

fix example.