styled flashes, sprinkling javascript