added snap.js, templates, and sample json response