Added event arg to exec methos in template.js