js flash replace instead of append