Flags library for JavaScript