added snippet to terms.html and samplive.html