fix js console syntax errors from flash notifications