update for opt js draw operation