Made global tournament() function and global Template.helper that accesses it. Re-factored timer and editors accordingly.