A small javascript utility API for working w. bitflags.