factor out flashRow #1

to work around javascript no-block-scope