first working javascript sample
added simple js templating for results