Added set render function in greg.js
Added set render function