Fixed code style issues in flag.js.