empty template spec is generating a basic js function