Refactored template engine

Refactored template engine to avoid jQuery, renamed it to mute.