Simple Javascript template component