simplify template API
jshint pass