Adding template accessor to $elm