Template function cleanup
Fix incorrect name in rendering error
Fix travis-ci on node 0.6