change flags implementation from vanillaJS to JQuery
Refactor bqDOMElmentSpec