Added NodeValidatorBuilder & fixed dart2js issue

Added a NodeValidatorBuilder to allow for user-defined HTML attributes inside popovers and fixed a problem that prevented popovers from working in dart2js code.