Update render.js

attempting to speed re-rendering of templates