Simple template engine for javascript