improve js flashes
Merge pull request #21 from ptrckbrwn/feature-improve-flashes

improve js flashes