MDL-43706, converting flags.js to yui3 format