Added JSDoc for render method