javascript based painter