fixed flashing js