Simple Javascript template engine