implemented emberjs templates