Shorter assert function, correct name for template creator function.

AssertionError function now is shorter because of use ? operator instead
if-else statement, function which creates HTML template has updated
name.