Preparation for node v0.11 compatibility.
Fix error in using new template engine.